package com.example.controller;

import com.example.common.result.Result;
import com.example.entity.yifei.Cmsmb;
import com.example.service.CmsmbService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@RestController
@RequestMapping("/api/cmsmb")
@Api(tags = "工厂信息档相关接口")
public class CmsmbController {

    @Resource
    private CmsmbService cmsmbService;

    @GetMapping("/queryList")
    @ApiOperation("查询工厂信息")
    public Result<List<Cmsmb>> queryList(){
        return this.cmsmbService.queryList();
    }
}
